﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Common_SqlHelper : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            txtSql.Attributes.Add("onfocus", "txtInti()");
        }
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        Label1.Text = "";

        object[] obj = new object[] { txtSql.Text };

        object[] ret = Srvtools.CliUtils.CallMethod("Common", "SqlHelper", obj);


        if (!(bool)ret[1])
        {
            Label1.Text = ret[2].ToString();
        }
        else
        {
            Label1.Text = "执行成功";
        }
    }
}
